using System;
using System.Collections.Generic;
using System.Text;
using TVProgram.Base;
using TVProgram.Channels;
using System.Globalization;

namespace TVProgram
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] str ={ "Info","ITV","HTVC","24h","THVL","VTC7" };
            int i;
            BaseChannel ch;
            for (i = 0; i < str.Length; i++)
            {
                string Day = "27";
                string Month = "03";
                string Year = "2012";
                int Days = 3;

                string StrStartDay = Month + "/" + Day + "/" + Year;
                CultureInfo provider = CultureInfo.InvariantCulture;

                DateTime StartDay = DateTime.ParseExact(StrStartDay, "d", provider);

             if (str[i].CompareTo("HTVC") == 0)
                {
                    string[] str1 ={ "VTC9","HA NOI", "LA34", "DN1", "BTV", "BTV1", "BTV2" };
                    for (int k = 0; k < str1.Length; k++)
                        if (str1[k].CompareTo("VTC9")==0)
                        {
                            for (int j = 0; j < Days; j++)
                            {
                                int channelid = 127;
                                DateTime CurDay = StartDay.AddDays(j);
                                ch = new HTVC (CurDay, channelid);
                                ch.Load();
                                ch.writeToFile();
                            }
                        }
                        //else if (str1[k].CompareTo("VTV2") == 0)
                        //{
                        //    for (int j = 0; j < Days; j++)
                        //    {
                        //        string channel = "VTV2";
                        //        DateTime CurDay = StartDay.AddDays(j);
                        //        ch = new S24h(CurDay, channel);
                        //        ch.Load();
                        //        ch.writeToFile();
                        //    }
                        //}
                        //else if (str1[k].CompareTo("VTV3") == 0)
                        //{
                        //    for (int j = 0; j < Days; j++)
                        //    {
                        //        string channel = "VTV3";
                        //        DateTime CurDay = StartDay.AddDays(j);
                        //        ch = new S24h(CurDay, channel);
                        //        ch.Load();
                        //        ch.writeToFile();
                        //    }
                        //}
                        //else if (str1[k].CompareTo("VTV4") == 0)
                        //{
                        //    for (int j = 0; j < Days; j++)
                        //    {
                        //        string channel = "VTV4";
                        //        DateTime CurDay = StartDay.AddDays(j);
                        //        ch = new S24h(CurDay, channel);
                        //        ch.Load();
                        //        ch.writeToFile();
                        //    }
                        //}
                        //else if (str1[k].CompareTo("VCTV2") == 0)
                        //{
                        //    for (int j = 0; j < Days; j++)
                        //    {
                        //        string channel = "VCTV2";
                        //        DateTime CurDay = StartDay.AddDays(j);
                        //        ch = new S24h(CurDay, channel);
                        //        ch.Load();
                        //        ch.writeToFile();
                        //    }
                        //}
                        //else if (str1[k].CompareTo("VCTV7") == 0)
                        //{
                        //    for (int j = 0; j < Days; j++)
                        //    {
                        //        string channel = "VCTV7";
                        //        DateTime CurDay = StartDay.AddDays(j);
                        //        ch = new S24h(CurDay, channel);
                        //        ch.Load();
                        //        ch.writeToFile();
                        //    }
                        //}
                }                
            }
        }
    }
}